<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>管理区域</title>
<script src="js/js.js"></script>
<script>
  function delc(id){
	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{
		self.location.href='purpose_delete.html?id='+id;
	}
}
</script>
</head>

<body>
<div id="man_zone"><div class="div1">
<input name="" type="button" class="PublicBot" onclick="window.location.href='purpose_add.html'" value="添加" /></div>
<form method="get" action="purpose_delete.html" id="form">
  <input name="type" id="type" type="hidden" value="">
  <table width="100%"  border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
    <tr>
    <td width="25"></td>
      <td align="center"  > 标题</td>

      
      <td align="center">编辑</td>
    </tr>
   <?
        function  classInfo ($data,$leve=0,$tmp="")
		{
			if (!empty($data))
			{
				if ($leve>0)
				{
					$tmp="|--".$tmp;
				}
				$leve++;
				
				foreach ($data as $v)
				{
					?>
    <tr>
          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>
      <td ><?=$tmp?><?=$v['title']?></td>
 
   
     
      <td align="center">
      <a onclick="delc(<?=$v['id']?>)"    href="#">删除</a>　
      　<a href="purpose_add.html?id=<?=$v['id']?>">修改</a></td>
    </tr> 
			<?
                    classInfo($v['next'],$leve,$tmp);
				}
			}
		}
		classInfo($list,0);
		?>

 <tr>
 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>
 <td colspan="3">删除栏目下信息<input name="columnNews" type="checkbox" value="1" />
 <input type="button" class="PublicBot" name="delete" id="button" value="删除" onClick="submits('batchDelete')">
 </td>
 </tr>
  </table>
 </form>
</div>
</body>
</html>
